import request from '@/utils/request'

// 封装频道相关的请求接口
export const channelListAPI = data => {
  return request({
    url: '/v1_0/user/channels'
  })
}
// 封装获取所有频道接口
export const allListAPI = () => {
  return request({
    url: '/v1_0/channels'
  })
}

// 封装重置频道列表的接口
export const resetListAPI = data => {
  return request({
    url: '/v1_0/user/channels',
    method: 'put',
    data
  })
}
